#!/bin/sh
# ps aux | grep crawler | grep -v grep | awk '{print $2}' | xargs kill -9
prcess_no=$(ps aux | grep crawler |grep -v grep| awk '{print $2}')

if [ -n "$prcess_no" ]; then
    echo 'shutdown process '$prcess_no
    kill $prcess_no
else
    echo "NO crawler process!!!!"
fi

echo "start crawler process"
nohup python -u rss_crawler.py> nohup.out 2>&1 &
